	<h2>Meine Anträge anzeigen:</h2>
	
	<p><% form_tag :action => 'index' do %>
		Email:
		<%= text_field_tag(:email, params[:email])%>
		<%= submit_tag 'Suche' %>
	<% end %></p>
	<br>

<table>
  <tr>
    <th>Titel</th>
    <th>Eingereicht</th>
    <th>Beschreibung</th>
    <th>Status</th>
  </tr>

<% @proposals.each do |proposal| %>
  <tr>
    <td><%= link_to (proposal.title, "/submit/view/#{proposal.id.to_s}") %></td>
	<td><%= time_ago_in_words(proposal.created_at) %> ago
    <td><%=h truncate(proposal.description, :length => 300) %></td>
    <td><%=h proposal.status %></td>
	  </tr>
<% end %>
</table>

<br />

<p><%= link_to 'zurück', '/submit/start/' %></p>